State Constants
URL state constants are returned by URLGetCurrentState
. The constants are defined in the
URLState
enumeration.
enum
{
kURLNullState = 0,
kURLInitiatedState = 1,
reserved1 = 2,
reserved2 = 3,
kURLResourceFoundState = 4,
kURLDownloadingState = 5,
kURLDataAvailableState = 0x10 + kURLDownloadingState,
kURLTransactionCompleteState= 6,
kURLErrorOccurredState = 7,
kURLAbortingState = 8,
kURLCompletedState = 9,
kURLUploadingState = 10
};
typedef UInt32 URLState;
Constant Descriptions
-
kURLNullState
-
The function URLOpen
has not yet been called.
-
kURLInitiatingState
-
The function URLOpen
has been called; however, the location specified by the URL reference has not yet been accessed. The stream enters this state from the
kURLNullState
state.
-
reserved1
-
Reserved.
-
reserved2
-
Reserved.
-
kURLResourceFoundState
-
The location specified by the URL reference has been accessed and is valid. The stream enters this state from the
kURLInitiatingState
state.
-
kURLDownloadingState
-
The download operation is in progress but there is currently no data in the buffers. The stream enters this state initially from the
kURLResourceFoundState
state. During a download operation, the stream's state may alternate between the
kURLDownloadingState
and the
kURLDataAvailableState
states.
-
kURLDataAvailableState
-
The download operation is in progress and data is available in the buffers. The stream initially enters this state from the
kURLDownloadingState
state. During a download operation, the stream's state may alternate between the
kURLDownloadingState
and the
kURLDataAvailableState
states.
-
kURLTransactionCompleteState
-
The download or upload operation is complete. The stream can enter this state from the
kURLDownloadingState
state.
-
kURLErrorOccurredState
-
An error occurred while transferring data. The stream can enter this state from any state except the
kURLAbortingState
state.
-
kURLAbortingState
-
The download or upload operation is aborting. The stream enters this state from the
kURLErrorOccurredState
state or as a result of calling URLAbort
when the stream is in any other state.
-
kURLCompletedState
-
There is no more activity to be performed on this stream. The transferred has completed successfully, the transfer has been aborted, or an error has occurred. The stream enters this state from the
kURLTransactionCompleteState
or the
kURLAbortingState
state.
-
kURLUploadingState
-
The upload operation is in progress.
© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)